<?php
/**
 * Specific jabber exception
 * 
 * @package exception
 */
class Zend_Jabber_Exception extends Exception {
    const CODE_NOT_CONNECTED = 1;
    const MESSAGE_NOT_CONNECTED = 'You are not connected to server. Use Zend_Jabber::connect()';

    const CODE_FEATURES_ARE_NOT_SUPPORTED = 2;
    const MESSAGE_FEATURES_ARE_NOT_SUPPORTED = 'Client does not support server features';

    const CODE_MECHANISMS_ARE_NOT_SUPPORTED = 3;
    const MESSAGE_MECHANISMS_ARE_NOT_SUPPORTED = 'Client does not support none of authentication mechanisms';
    
    const CODE_STREAM_ERROR = 4;
    const MESSAGE_STREAM_ERROR = 'Unexpected stream error';
    
    const CODE_UNKNOWN_AUTHENTICATION_RESPONSE = 5;
    const MESSAGE_UNKNOWN_AUTHENTICATION_RESPONSE = 'Unknown authentication response';
    
    const CODE_PRIORITY_OUT_OF_RANGE = 6;
    const MESSAGE_PRIORITY_OUT_OF_RANGE = 'User priority should be in range from -217 to +128';
    
    const MESSAGE_NOT_LOGGED_IN = 'You should be logged in to perform this action';
    const CODE_NOT_LOGGED_IN = 7;
    
    const MESSAGE_NOT_LOGGED = 'You should not be logged in to perform this action';
    const CODE_NOT_LOGGED = 8;
    
    const MESSAGE_SHOULD_BE_ARRAY_OF_ROSTER_GROPS = 'Last argument should be an array of Zend_Jabber_AddressBook_Group\'s';
    const CODE_SHOULD_BE_ARRAY_OF_ROSTER_GROPS = 9;
}
?>